<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Hello World</title>
    <script src="../vue.js"></script>
  </head>
  <body>
    <div id="app">{{ content }}</div>
    <script>
      // var app = document.getElementById('app')
      // app.innerHTML = 'Hello World'
      // setTimeout(function() {
      //   app.innerHTML = 'Bye World'
      // }, 2000)

      var app = new Vue({
        el: '#app',
        data: {
          content: 'Hello World from Vue'
        }
      })
      setTimeout(function(){
        app.$data.content = 'Bye World'
      },2000)
    </script>
  </body>
</html>
